<form class="line headline headline1">
    <div class="element position">${Result.size()} Proteins found in Chromosome ${Chromosome}</div>
    <div class="element range">between Position</div>
    <g:textField class="element rangeInput" name="start" value="${Start}" />
    <div class="element rangeEndValue"> and</div>
    <g:textField class="element rangeInput" name="end" value="${End}" />
    <g:hiddenField name="chromosome" value="${Chromosome}" />
    <g:hiddenField name="organism" value="${Organism}" />
    <g:hiddenField name="max" value="${Max}" />
    <g:hiddenField name="ranges" value="${Ranges}" />
    <g:submitToRemote class="element update" action="proteinList" update="proteinTable" value="Update" />
  </form>
<table id="proteinList">
  <thead>
    <tr>
      <th>Protein</th>
      <th>Gene Name</th>
      <th>Description</th>
      <th>Start</th>
      <th>End</th>
      <th>Strand</th>
      <th>Experiment</th>
    </tr>
    <tr>
      <td><input type="text" name="search_protein" value="Search Protein" class="search_init" /></td>
      <td><input type="text" name="search_gene_name" value="Search Gene Name" class="search_init" /></td>
      <td><input type="text" name="search_description" value="Search Description" class="search_init" /></td>
      <td><input type="text" name="search_start" value="Search Start" class="search_init" /></td>
      <td><input type="text" name="search_end" value="Search End" class="search_init" /></td>
      <td><input type="text" name="search_strand" value="Search Strand" class="search_init" /></td>
      <td><input type="text" name="search_experiment" value="Search Experiment" class="search_init" /></td>
    </tr>
  </thead>
  <tbody>
    <g:each in="${Result}" var="line">
      <tr>
        <th class="left"><g:link controller="Protein" action="show" id="${line[0].id}" target="_blank" class="element protein">${line[0].mainId}</g:link></th>
        <th class="left">${((line[0].genes!=null)&&(line[0].genes.size()!=0))?line[0].genes.sort{it.name.size()}[0].name:''}</th>
        <th class="left">${line[0].description }</th>
        <th class="right">${line[1].start}</th>
        <th class="right">${line[1].end}</th>
        <th class="right">${line[1].strand}</th>
        <th class="left">${line[2].name}</th>
      </tr>
    </g:each>
  </tbody>
</table>
<div class="line footline">
    <g:link action="download" params="${[organism:Organism, chromosome:Chromosome, start:Start, end:End]}" class="element download button" target="_blank">Download</g:link>
</div>
<script type="text/javascript">setMarker(${Start},${End},${Max},${Ranges}, "");showProteinsInit();</script>